Health check

DMS implements a health check endpoint based on the built-in health check features from ASP. Net Core (https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/monitor-app-health). This functionality can be turned on and off via the appsettings.json:

"HealthCheck": {
"Enable": true,
"HealthCheckEndPoint": "hc",
"HealthCheckDetailsEndPoint": "hc-details",
"MongoDbHealthCheck": true,
"IdentityServerHealthCheck": true,
"TimeoutInSecond": 30
}

For the local deployment, this endpoint can be reached via http://localhost:5000/hc. By default, it supports a health check for the availability of MongoDB and the identity service. It will indicate 'healthy' when the MongoDB and identity services are reachable. It will indicate 'unhealthy' when the identity service and/or the MongoDB service is not reachable. The details for the health check can be found at the endpoint http://localhost:5000/hc-details.